<?php
  require '../include/library.inc.php';
  require '../include/admin_login.inc.php';
    
  $school_id = intval($_GET['school_id']);
  $featured = intval($_GET['featured']);
  
  if($school_id) {
    $sql = "UPDATE 
              schools
            SET
              featured = $featured
            WHERE
              school_id = $school_id 
             ";
    query($sql);
  }
  
  redirect("schools.php");
?>